projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55683c0
)
swipe: Dont emit swipe() if the gesture was denied rather than finished
author
Carlos Garnacho
<carlosg@gnome.org>
Tue, 25 Mar 2014 12:45:17 +0000
(13:45 +0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Fri, 23 May 2014 17:54:24 +0000
(19:54 +0200)
gtk/gtkgestureswipe.c
patch
|
blob
|
history
diff --git
a/gtk/gtkgestureswipe.c
b/gtk/gtkgestureswipe.c
index 60fb3f7b5bb7c2a72c1470bdba6c52024c67c587..d04504a276519045fb6fcb9779ddd41193bc95fa 100644
(file)
--- a/
gtk/gtkgestureswipe.c
+++ b/
gtk/gtkgestureswipe.c
@@
-143,6
+143,9
@@
gtk_gesture_swipe_end (GtkGesture *gesture,
gdouble velocity_x, velocity_y;
guint32 evtime;
+ if (gtk_gesture_get_sequence_state (gesture, sequence) == GTK_EVENT_SEQUENCE_DENIED)
+ return;
+
priv = gtk_gesture_swipe_get_instance_private (swipe);
gtk_gesture_get_last_update_time (gesture, sequence, &evtime);
_gtk_gesture_swipe_clear_backlog (swipe, evtime);